home *** CD-ROM | disk | FTP | other *** search
- #ifndef __FXNPROTOS__
- #define __FXNPROTOS__
-
- /************** Function Prototypes **************/
-
- void ToolBoxInit ( void );
- void EventInit ( void );
- void MenuBarInit ( void );
- void EventLoop ( void );
- void DoDialogEvent ( EventRecord *eventPtr );
- void SetDialogFontAndSize( DialogRef dialog, short font, short fontSize );
- void InvalidInputDialog ( Str255 inString, Str255 inString2 );
- void HandleTest2 ( void );
- void GetDialogItemHandle( DialogRef dialog, short item, Handle *iHandle );
-
-
- pascal OSErr DoOpenApp ( AppleEvent theAppleEvent, AppleEvent reply, long refCon );
- pascal OSErr DoOpenDoc ( AppleEvent theAppleEvent, AppleEvent reply, long refCon );
- pascal OSErr DoPrintDoc ( AppleEvent theAppleEvent, AppleEvent reply, long refCon );
- pascal OSErr DoQuitApp ( AppleEvent theAppleEvent, AppleEvent reply, long refCon );
-
- void HandleMouseDown ( EventRecord *eventPtr, short itemHit );
- void HandleMenuChoice ( long menuChoice );
- void HandleFileChoice ( short item );
- void HandleAppleChoice ( short item );
- void HandleEditChoice ( short item );
- void HandleOptionsChoice ( short item );
- void HandleTest1 ( void );
- void DrawAboutDialog ( void );
-
-
- // Apple Events
-
- OSErr ProcessItem( FSSpec *inItem );
- OSErr AEHasRequiredParameters( AppleEvent *ae );
- pascal OSErr AEOpenApplication( AppleEvent *ae, AppleEvent *reply, long refCon );
- pascal OSErr AEOpenDocuments( AppleEvent *ae, AppleEvent *reply, long refCon );
- pascal OSErr AEPrintDocuments( AppleEvent *ae, AppleEvent *reply, long refCon );
- pascal OSErr AEQuitApplication( AppleEvent *ae, AppleEvent *reply, long refCon );
- pascal OSErr AEHandleDocuments( AppleEvent *ae, AppleEvent *reply, long refCon );
- OSErr AEGetNthFSSpec( AEDescList *documentList, long index, FSSpec *spec );
- #endif